﻿using System;
using EmailJabber.EmailJabber.Core.FileManagemant;
using EmailJabber.Logic.Commands.Base;
using EmailJabber.Logic.Logic.BusinessLogic;

namespace EmailJabber.Logic.Commands.FileViewCommands
{
    public class ChangeDirCommand:CommandBase
    {
        protected override string GetDecription()
        {
            return "Change current dir";
        }

        protected override Guid GetId()
        {
            return new Guid("AF7934FD-5278-49E2-8DDB-9175963919C5");
        }

        protected override void ExecuteSafe(MessageIM comnd)
        {
        	BL.Instance.Send(MessageIM.GetReply(FileSystemBlo.Instance.ChangeDir(comnd.Body),comnd));
        }
    }
}